<?php
session_start();
class home extends Tpage{

	public function saveRecord($sender, $param){
		$usuario = new usuarioRecord();
		
		$usuario->BooleanIsAdmin = true;
		
		$usuario->StrEmail = $this->email->Text;
		$usuario->StrNome = $this->nome->Text;
		$usuario->StrSenha = $this->senha->Text;
		$usuario->StrUsuario = $this->login->Text;
		$usuario->StrFone = $this->fone->Text;
		$usuario->StrCel = $this->cel->Text;
		$usuario->save();
		
		$this->mensagen->Text ="cadastro efetuado com sucesso";
		$this->panel1->render($param->NewWriter);
	
	}
}
?>